/**
 * 数字枚举
 *    enum 枚举名字 {
 *        枚举成员1,
 *        枚举成员2
 *    }
 */
var Direction;
(function (Direction) {
    Direction[Direction["Up"] = 0] = "Up";
    Direction[Direction["Down"] = 1] = "Down";
    Direction[Direction["Left"] = 2] = "Left";
    Direction[Direction["Right"] = 3] = "Right";
})(Direction || (Direction = {}));
var dir = Direction.Up;
console.log("dir", dir);
var Role;
(function (Role) {
    Role[Role["\u8D85\u7EA7\u7BA1\u7406\u5458"] = 0] = "\u8D85\u7EA7\u7BA1\u7406\u5458";
    Role[Role["\u7BA1\u7406\u5458"] = 1] = "\u7BA1\u7406\u5458";
    Role[Role["\u666E\u901A\u6210\u5458"] = 2] = "\u666E\u901A\u6210\u5458";
})(Role || (Role = {}));
var RoleObj = {
    0: "超级管理员",
    1: "管理员",
    2: "普通成员",
};
var RoleId = 0;
console.log(Role[RoleId]); // '超级管理员’
console.log(RoleObj[RoleId]); // '超级管理员'
/**
 * 默认情况下，Up 的值为 0, 其余成员会按顺序自增。
 *  Up 0
 *  Down 1
 *  Left 2
 *  Right 3
 */
